package com.yorick.common.config.rabbitmq.callback;

import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

public class RabbitConfirmCallBack implements RabbitTemplate.ConfirmCallback {


    @Override
    public void confirm(CorrelationData correlationData, boolean b, String s) {
        System.out.println("消息唯一标识: {}"+ correlationData);
        System.out.println("确认状态: "+ b);
        System.out.println("造成原因: "+ s);
    }
}
